home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: key input: "hot" keys via standard libraries (unix c)
- Date: Fri, 05 Apr 96 14:57:13 GMT
- Organization: none
- Message-ID: <828716233snz@genesis.demon.co.uk>
- References: <Pine.SUN.3.92.960404211350.28756B-100000@suntan>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <Pine.SUN.3.92.960404211350.28756B-100000@suntan>
- cdiaz@eng.usf.edu "CS" writes:
-
- >Hello! Does stdio.h have the capabilities to support the implementation of
- >"hot" keys? My "hot" key routine is the menu navigator of a loan program
- >and needs to meet the requirements that make "hot" key what it is:
- > 1) Must never print to the screen the key pressed.
- > 2) Must NOT wait for ENTER to be pressed before reading th keystroke.
- > 3) IF no key has been pressed, the program can do something else
- >(like update a clock with seconds digits) and then go back and wait for
- >the key.
-
- No, standard C does not support this.
-
- >Thanks a million! Please don't refer me to non standard libraries. This
- >program has to be as least platform-dependent as possible. The
- >libraries I have at my disposal are stdio.h, time.h, ctype.h, locale.h,
- >math.h, signal.h, stdlib.h & limits.h.
-
- Without using non-standard libraries/system calls you simply can't do it.
- The FAQ discusses it, and has just been posted to this newsgroup. You can also
- ftp it from rtfm.mit.edu under /pub/usenet/comp.lang.c
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-